interface Alart{
    alert()
}

class door{}

class securityDoor extends door implements Alart {
    alert() {
        console.log('securityDoor alert')
    }
}

class Car implements Alart{
    alert() {
        console.log('Car alert')
    }
}

let car = new Car()
console.log(car.alert())